package model

type Student struct {
	ID         int    `json:"id"`
	Name       string `json:"name"`
	Age        int    `json:"age"`
	Permission bool   `json:"permission"`
}

func (s *Student) GetStudentIdentity() (identity string) {
	if s.Permission {
		identity = "group leader"
	} else {
		identity = "members"
	}
	return
}
